if ($_GET['lang'] == "en")
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'en';
if ($_GET['lang'] == "fr")
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'fr';
$titre_html = "WAMP5 Homepage";
$titre_conf = "Server Configuration";
$versa = "Apache version :";
$versp = "PHP version :";
$versm = "MySQL version :";
$titre_page = "Tools";
$phpinfo = "phpinfo( )";
$mysqlerror1 = "MySQL not launched or bad phpmyadmin config";
$mysqlerror2 = "phpmyadmin connexion not available";
$phpmyadmin = "PHPmyadmin 2.6.0-rc3";
$sqlitemanager = "SQLitemanager 1.0.1";
$titre_exemple = "Examples of PHP5's new features";
$txt_simplexml = "SimpleXML";
$txt_simplexml_file = "fichier XML";
$txt_poo = "Object programming";
$txt_sqlite = "SQLite";
$txt_projet = "Your projects";
$txt_lang = "version française";
$ch_lang = "fr";
$ouvre_www = "open 'www'";
$ouvre_dossier = "open";
$txt_no_projet = "No project yet.
To create a new one, just create a directory in 'www'.";
$faq = "http://www.en.wampserver.com/faq.php";
if (preg_match("/^fr/", $_SERVER['HTTP_ACCEPT_LANGUAGE']))
{
$titre_html = "Accueil WAMP5";
$titre_conf = "Configuration Serveur";
$versa = "Version de Apache:";
$versp = "Version de PHP:";
$versm = "Version de MySQL:";
$mysqlerror1 = "MySQL n'est pas lancé ou votre configuration phpmyadmin n'est pas bonne.";
$mysqlerror2 = "connexion de phpmyadmin non disponible";
$titre_page = "Outils";
$phpinfo = "phpinfo( )";
$phpmyadmin = "PHPmyadmin 2.6.0-rc3";
$sqlitemanager = "SQLitemanager 1.0.1";
$titre_exemple = "Exemples des nouveautés PHP5";
$txt_simplexml = "SimpleXML";
$txt_simplexml_file = "fichier XML";
$txt_poo = "Programmation Orientée Objet";
$txt_sqlite = "SQLite";
$txt_projet = "Vos projets";
$txt_lang = "english version";
$ch_lang = "en";
$ouvre_www = "ouvrir 'www'";
$ouvre_dossier = "ouvrir";
$txt_no_projet = "Vous n'avez pas de projet pour le moment.
Pour en ajouter un nouveau, créez simplement un répertoire dans 'www'.";
$faq = "http://www.wampserver.com/faq.php";
}
$apache_version = apache_get_version();
$aff_ap = explode ('PHP',$apache_version);
if (file_exists('phpmyadmin/config.inc.php'))
{
include ('phpmyadmin/config.inc.php');
if (@mysql_connect('localhost',$cfg['Servers']['1']['user'] ,$cfg['Servers']['1']['password']))
$mysql_version = mysql_get_server_info();
else
$mysql_version = $mysqlerror1;
}
else
$mysql_version = $mysql_error2;
?>
|
|||||||||||||||
=$titre_conf ?>
=$titre_page ?> =$phpinfo ?> =$titre_exemple ?> =$txt_simplexml ?> (=$txt_simplexml_file ?>) =$txt_projet ?>
|